<template>
  <div :class="['chat-content', 'revice-bg']">
    正在思考
    <div class="dot dot-1"></div>
    <div class="dot dot-2"></div>
    <div class="dot dot-3"></div>
  </div>
</template>

<script setup></script>

<style lang="less" scoped>
.chat-content {
  width: 130px;
  box-sizing: border-box;
  padding: 12px 20px 12px 20px;
}

.send-bg {
  border-radius: 12px 0 12px 12px;
  background-color: #bdd2ff;
  align-self: flex-end;
  width: auto;
}

.revice-bg {
  border-radius: 0 12px 12px 12px;
  background-color: white;
  align-self: flex-start;
}

.dot {
  opacity: 0;
  animation: fade 1.5s infinite;
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: #262626;
  border-radius: 2px;
  margin-right: 2px;
}

.dot-1 {
  animation-delay: 0s;
}

.dot-2 {
  animation-delay: 0.5s;
}

.dot-3 {
  animation-delay: 1s;
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
</style>
